package com.company.class10;

/**
 * @Classname Human
 * @Description 类型说明
 * @Date 2022/5/4 23:17
 * @Created by zbw
 */

public class Human extends Animal{
    public String name;
    public final String REFLECTION = "会思考";


    public void Human(){
        System.out.println("人类"+REFLECTION);
    }

    @Override
    public void sleep() {
        super.sleep();
        System.out.println("所以人类也需要睡觉");
    }

    public final void speak(){
        System.out.println("人类会说话");
    }

    public void love(){
        System.out.println(name+"是拥有爱的");
    }


}
